<!DOCTYPE html>
<html lang="zh" dir="ltr" class="client-nojs">
<head>
<title>std::chrono::from_stream (std::chrono::gps_time)</title>
<meta charset="UTF-8">
<meta name="generator" content="MediaWiki 1.21.2">
<link rel="shortcut icon" href="../../../../common/favicon.ico">
<link rel="stylesheet" href="../../../../common/ext.css">
<meta name="ResourceLoaderDynamicStyles" content="">
<link rel="stylesheet" href="../../../../common/site_modules.css">
<style>a:lang(ar),a:lang(ckb),a:lang(fa),a:lang(kk-arab),a:lang(mzn),a:lang(ps),a:lang(ur){text-decoration:none}#toc{display:none}.editsection{display:none}
/* cache key: mwiki1-mwiki_zh_:resourceloader:filter:minify-css:7:15cea3ec788a65b5187d4018eed543bf */</style>

<script src="../../../../common/startup_scripts.js"></script>
<script>if(window.mw){
mw.config.set({"wgCanonicalNamespace":"","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":0,"wgPageName":"cpp/chrono/gps_clock/from_stream","wgTitle":"cpp/chrono/gps clock/from stream","wgCurRevisionId":56938,"wgArticleId":11258,"wgIsArticle":true,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":[],"wgBreakFrames":false,"wgPageContentLanguage":"zh","wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"zh","wgMonthNames":["","1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"wgMonthNamesShort":["","1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"wgRelevantPageName":"cpp/chrono/gps_clock/from_stream","wgUserVariant":"zh","wgRestrictionEdit":[],"wgRestrictionMove":[]});
}</script><script>if(window.mw){
mw.loader.implement("user.options",function(){mw.user.options.set({"ccmeonemails":0,"cols":80,"date":"default","diffonly":0,"disablemail":0,"disablesuggest":0,"editfont":"default","editondblclick":0,"editsection":0,"editsectiononrightclick":0,"enotifminoredits":0,"enotifrevealaddr":0,"enotifusertalkpages":1,"enotifwatchlistpages":0,"extendwatchlist":0,"externaldiff":0,"externaleditor":0,"fancysig":0,"forceeditsummary":0,"gender":"unknown","hideminor":0,"hidepatrolled":0,"imagesize":2,"justify":0,"math":1,"minordefault":0,"newpageshidepatrolled":0,"nocache":0,"noconvertlink":0,"norollbackdiff":0,"numberheadings":0,"previewonfirst":0,"previewontop":1,"quickbar":5,"rcdays":7,"rclimit":50,"rememberpassword":0,"rows":25,"searchlimit":20,"showhiddencats":0,"showjumplinks":1,"shownumberswatching":1,"showtoc":0,"showtoolbar":1,"skin":"cppreference2","stubthreshold":0,"thumbsize":2,"underline":2,"uselivepreview":0,"usenewrc":0,"watchcreations":0,"watchdefault":0,"watchdeletion":0,
"watchlistdays":3,"watchlisthideanons":0,"watchlisthidebots":0,"watchlisthideliu":0,"watchlisthideminor":0,"watchlisthideown":0,"watchlisthidepatrolled":0,"watchmoves":0,"wllimit":250,"variant":"zh","language":"zh","searchNs0":true,"searchNs1":false,"searchNs2":false,"searchNs3":false,"searchNs4":false,"searchNs5":false,"searchNs6":false,"searchNs7":false,"searchNs8":false,"searchNs9":false,"searchNs10":false,"searchNs11":false,"searchNs12":false,"searchNs13":false,"searchNs14":false,"searchNs15":false,"gadget-MathJax":1,"gadget-ColiruCompiler":1});;},{},{});mw.loader.implement("user.tokens",function(){mw.user.tokens.set({"editToken":"+\\","patrolToken":false,"watchToken":false});;},{},{});
/* cache key: mwiki1-mwiki_zh_:resourceloader:filter:minify-js:7:258d7cd6aa9aa67dee25e01fb6a9e505 */
}</script>
<script>if(window.mw){
mw.loader.load(["mediawiki.page.startup","mediawiki.legacy.wikibits","mediawiki.legacy.ajax"]);
}</script>
<style type="text/css">/*<![CDATA[*/
.source-cpp {line-height: normal;}
.source-cpp li, .source-cpp pre {
	line-height: normal; border: 0px none white;
}
/**
 * GeSHi Dynamically Generated Stylesheet
 * --------------------------------------
 * Dynamically generated stylesheet for cpp
 * CSS class: source-cpp, CSS id: 
 * GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann
 * (http://qbnz.com/highlighter/ and http://geshi.org/)
 * --------------------------------------
 */
.cpp.source-cpp .de1, .cpp.source-cpp .de2 {font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;}
.cpp.source-cpp  {font-family:monospace;}
.cpp.source-cpp .imp {font-weight: bold; color: red;}
.cpp.source-cpp li, .cpp.source-cpp .li1 {font-weight: normal; vertical-align:top;}
.cpp.source-cpp .ln {width:1px;text-align:right;margin:0;padding:0 2px;vertical-align:top;}
.cpp.source-cpp .li2 {font-weight: bold; vertical-align:top;}
.cpp.source-cpp .kw1 {color: #0000dd;}
.cpp.source-cpp .kw2 {color: #0000ff;}
.cpp.source-cpp .kw3 {color: #0000dd;}
.cpp.source-cpp .kw4 {color: #0000ff;}
.cpp.source-cpp .co1 {color: #909090;}
.cpp.source-cpp .co2 {color: #339900;}
.cpp.source-cpp .coMULTI {color: #ff0000; font-style: italic;}
.cpp.source-cpp .es0 {color: #008000; font-weight: bold;}
.cpp.source-cpp .es1 {color: #008000; font-weight: bold;}
.cpp.source-cpp .es2 {color: #008000; font-weight: bold;}
.cpp.source-cpp .es3 {color: #008000; font-weight: bold;}
.cpp.source-cpp .es4 {color: #008000; font-weight: bold;}
.cpp.source-cpp .es5 {color: #008000; font-weight: bold;}
.cpp.source-cpp .br0 {color: #008000;}
.cpp.source-cpp .sy0 {color: #008000;}
.cpp.source-cpp .sy1 {color: #000080;}
.cpp.source-cpp .sy2 {color: #000040;}
.cpp.source-cpp .sy3 {color: #000040;}
.cpp.source-cpp .sy4 {color: #008080;}
.cpp.source-cpp .st0 {color: #008000;}
.cpp.source-cpp .nu0 {color: #000080;}
.cpp.source-cpp .nu6 {color: #000080;}
.cpp.source-cpp .nu8 {color: #000080;}
.cpp.source-cpp .nu12 {color: #000080;}
.cpp.source-cpp .nu16 {color:#000080;}
.cpp.source-cpp .nu17 {color:#000080;}
.cpp.source-cpp .nu18 {color:#000080;}
.cpp.source-cpp .nu19 {color:#000080;}
.cpp.source-cpp .ln-xtra, .cpp.source-cpp li.ln-xtra, .cpp.source-cpp div.ln-xtra {background-color: #ffc;}
.cpp.source-cpp span.xtra { display:block; }

/*]]>*/
</style><!--[if lt IE 7]><style type="text/css">body{behavior:url("/mwiki/skins/cppreference2/csshover.min.htc")}</style><![endif]--></head>
<body class="mediawiki ltr sitedir-ltr ns-0 ns-subject page-cpp_chrono_gps_clock_from_stream skin-cppreference2 action-view cpp-page-template cpp-navbar">
        <!-- header -->
        <!-- /header -->
        <!-- content -->
<div id="cpp-content-base">
            <div id="content">
                <a id="top"></a>
                <div id="mw-js-message" style="display:none;"></div>
                                <!-- firstHeading -->
<h1 id="firstHeading" class="firstHeading"><span style="font-size:0.7em; line-height:130%">std::chrono::</span>from_stream <span style="font-size:0.7em; line-height:130%">(std::chrono::gps_time)</span></h1>
                <!-- /firstHeading -->
                <!-- bodyContent -->
                <div id="bodyContent">
                                        <!-- tagline -->
                    <div id="siteSub">来自cppreference.com</div>
                    <!-- /tagline -->
                                        <!-- subtitle -->
                    <div id="contentSub"><span class="subpages">&lt; <a href="../../../cpp.html" title="cpp">cpp</a>‎ | <a href="../../chrono.html" title="cpp/chrono">chrono</a>‎ | <a href="../gps_clock.html" title="cpp/chrono/gps clock">gps clock</a></span></div>
                    <!-- /subtitle -->
                                                            <!-- bodycontent -->
                    <div id="mw-content-text" lang="zh" dir="ltr" class="mw-content-ltr"><div class="t-page-template" style="">
<p>
</p>
</div>
<div class="t-navbar" style=""><div class="t-navbar-sep"> </div><div class="t-navbar-head"><a href="../../../cpp.html" title="cpp"> C++</a><div class="t-navbar-menu"><div><div><table class="t-nv-begin" cellpadding="0" style="line-height:1.1em;">
<tr class="t-nv"><td colspan="5"> <a href="../../language.html" title="cpp/language">语言</a> </td></tr>
<tr class="t-nv"><td colspan="5"> <a href="../../header.html" title="cpp/header">标准库头文件</a> </td></tr>
<tr class="t-nv"><td colspan="5"> <a href="../../freestanding.html" title="cpp/freestanding"> 自立与有宿主实现</a> </td></tr>
<tr class="t-nv"><td colspan="5"> <a href="../../named_req.html" title="cpp/named req">具名要求</a> </td></tr>
<tr class="t-nv"><td colspan="5"> <a href="../../utility.html#.E8.AF.AD.E8.A8.80.E6.94.AF.E6.8C.81" title="cpp/utility">语言支持库</a> </td></tr>
<tr class="t-nv"><td colspan="5"> <a href="../../concepts.html" title="cpp/concepts">概念库</a> <span class="t-mark-rev t-since-cxx20">(C++20)</span> </td></tr>
<tr class="t-nv"><td colspan="5"> <a href="../../error.html" title="cpp/error">诊断库</a> </td></tr>
<tr class="t-nv"><td colspan="5"> <a href="../../utility.html" title="cpp/utility">工具库</a> </td></tr>
<tr class="t-nv"><td colspan="5"> <a href="../../string.html" title="cpp/string">字符串库</a> </td></tr>
<tr class="t-nv"><td colspan="5"> <a href="https://zh.cppreference.com/w/cpp/container" title="cpp/container">容器库</a> </td></tr>
<tr class="t-nv"><td colspan="5"> <a href="../../iterator.html" title="cpp/iterator">迭代器库</a> </td></tr>
<tr class="t-nv"><td colspan="5"> <a href="../../ranges.html" title="cpp/ranges"> 范围库</a> <span class="t-mark-rev t-since-cxx20">(C++20)</span> </td></tr>
<tr class="t-nv"><td colspan="5"> <a href="../../algorithm.html" title="cpp/algorithm">算法库</a> </td></tr>
<tr class="t-nv"><td colspan="5"> <a href="../../numeric.html" title="cpp/numeric">数值库</a> </td></tr>
<tr class="t-nv"><td colspan="5"> <a href="../../io.html" title="cpp/io">输入/输出库</a> </td></tr>
<tr class="t-nv"><td colspan="5"> <a href="../../locale.html" title="cpp/locale">本地化库</a> </td></tr>
<tr class="t-nv"><td colspan="5"> <a href="../../regex.html" title="cpp/regex">正则表达式库</a> <span class="t-mark-rev t-since-cxx11">(C++11)</span> </td></tr>
<tr class="t-nv"><td colspan="5"> <a href="../../atomic.html" title="cpp/atomic">原子操作库</a> <span class="t-mark-rev t-since-cxx11">(C++11)</span> </td></tr>
<tr class="t-nv"><td colspan="5"> <a href="../../thread.html" title="cpp/thread">线程支持库</a> <span class="t-mark-rev t-since-cxx11">(C++11)</span> </td></tr>
<tr class="t-nv"><td colspan="5"> <a href="../../filesystem.html" title="cpp/filesystem">文件系统库</a> <span class="t-mark-rev t-since-cxx17">(C++17)</span> </td></tr>
<tr class="t-nv"><td colspan="5"> <a href="../../experimental.html" title="cpp/experimental">技术规范</a> </td></tr>
</table></div><div></div></div></div></div><div class="t-navbar-sep"> </div><div class="t-navbar-head"><a href="../../chrono.html" title="cpp/chrono">日期和时间工具</a><div class="t-navbar-menu"><div><div><table class="t-nv-begin" cellpadding="0" style="">
<tr class="t-nv-col-table"><td><div><table class="t-nv-begin" cellpadding="0" style="">
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><a href="../duration.html" title="cpp/chrono/duration"><span class="t-lines"><span>duration</span></span></a></div><div><span class="t-lines"><span><span class="t-mark-rev t-since-cxx11">(C++11)</span></span></span></div></div></td></tr>
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><a href="../time_point.html" title="cpp/chrono/time point"><span class="t-lines"><span>time_point</span></span></a></div><div><span class="t-lines"><span><span class="t-mark-rev t-since-cxx11">(C++11)</span></span></span></div></div></td></tr>
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><a href="../time_of_day.html" title="cpp/chrono/time of day"><span class="t-lines"><span>time_of_day</span></span></a></div><div><span class="t-lines"><span><span class="t-mark-rev t-since-cxx20">(C++20)</span></span></span></div></div></td></tr>
</table></div></td><td><div><table class="t-nv-begin" cellpadding="0" style="">
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><a href="../clock_time_conversion.html" title="cpp/chrono/clock time conversion"><span class="t-lines"><span>clock_time_conversion</span></span></a></div><div><span class="t-lines"><span><span class="t-mark-rev t-since-cxx20">(C++20)</span></span></span></div></div></td></tr>
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><a href="../clock_cast.html" title="cpp/chrono/clock cast"><span class="t-lines"><span>clock_cast</span></span></a></div><div><span class="t-lines"><span><span class="t-mark-rev t-since-cxx20">(C++20)</span></span></span></div></div></td></tr>
<tr class="t-nv"><td colspan="5"> <br>
</td></tr>
</table></div></td></tr>
<tr class="t-nv-h2"><td colspan="5"> 时钟</td></tr>
<tr class="t-nv-col-table"><td><div><table class="t-nv-begin" cellpadding="0" style="">
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><a href="../system_clock.html" title="cpp/chrono/system clock"><span class="t-lines"><span>system_clock</span></span></a></div><div><span class="t-lines"><span><span class="t-mark-rev t-since-cxx11">(C++11)</span></span></span></div></div></td></tr>
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><a href="../steady_clock.html" title="cpp/chrono/steady clock"><span class="t-lines"><span>steady_clock</span></span></a></div><div><span class="t-lines"><span><span class="t-mark-rev t-since-cxx11">(C++11)</span></span></span></div></div></td></tr>
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><a href="../high_resolution_clock.html" title="cpp/chrono/high resolution clock"><span class="t-lines"><span>high_resolution_clock</span></span></a></div><div><span class="t-lines"><span><span class="t-mark-rev t-since-cxx11">(C++11)</span></span></span></div></div></td></tr>
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><a href="../is_clock.html" title="cpp/chrono/is clock"><span class="t-lines"><span>is_clock</span></span></a></div><div><span class="t-lines"><span><span class="t-mark-rev t-since-cxx20">(C++20)</span></span></span></div></div></td></tr>
<tr class="t-nv"><td colspan="5">                                             </td></tr>
</table></div></td><td><div><table class="t-nv-begin" cellpadding="0" style="">
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><a href="../utc_clock.html" title="cpp/chrono/utc clock"><span class="t-lines"><span>utc_clock</span></span></a></div><div><span class="t-lines"><span><span class="t-mark-rev t-since-cxx20">(C++20)</span></span></span></div></div></td></tr>
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><a href="../tai_clock.html" title="cpp/chrono/tai clock"><span class="t-lines"><span>tai_clock</span></span></a></div><div><span class="t-lines"><span><span class="t-mark-rev t-since-cxx20">(C++20)</span></span></span></div></div></td></tr>
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><a href="../gps_clock.html" title="cpp/chrono/gps clock"><span class="t-lines"><span>gps_clock</span></span></a></div><div><span class="t-lines"><span><span class="t-mark-rev t-since-cxx20">(C++20)</span></span></span></div></div></td></tr>
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><a href="../file_clock.html" title="cpp/chrono/file clock"><span class="t-lines"><span>file_clock</span></span></a></div><div><span class="t-lines"><span><span class="t-mark-rev t-since-cxx20">(C++20)</span></span></span></div></div></td></tr>
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><a href="../local_t.html" title="cpp/chrono/local t"><span class="t-lines"><span>local_t</span></span></a></div><div><span class="t-lines"><span><span class="t-mark-rev t-since-cxx20">(C++20)</span></span></span></div></div></td></tr>
</table></div></td></tr>
<tr class="t-nv-h2"><td colspan="5"> 日历</td></tr>
<tr class="t-nv-col-table"><td><div><table class="t-nv-begin" cellpadding="0" style="">
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><a href="../day.html" title="cpp/chrono/day"><span class="t-lines"><span>day</span></span></a></div><div><span class="t-lines"><span><span class="t-mark-rev t-since-cxx20">(C++20)</span></span></span></div></div></td></tr>
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><a href="../month.html" title="cpp/chrono/month"><span class="t-lines"><span>month</span></span></a></div><div><span class="t-lines"><span><span class="t-mark-rev t-since-cxx20">(C++20)</span></span></span></div></div></td></tr>
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><a href="../year.html" title="cpp/chrono/year"><span class="t-lines"><span>year</span></span></a></div><div><span class="t-lines"><span><span class="t-mark-rev t-since-cxx20">(C++20)</span></span></span></div></div></td></tr>
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><a href="../weekday.html" title="cpp/chrono/weekday"><span class="t-lines"><span>weekday</span></span></a></div><div><span class="t-lines"><span><span class="t-mark-rev t-since-cxx20">(C++20)</span></span></span></div></div></td></tr>
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><a href="../operator_slash.html" title="cpp/chrono/operator slash"><span class="t-lines"><span>operator/</span></span></a></div><div><span class="t-lines"><span><span class="t-mark-rev t-since-cxx20">(C++20)</span></span></span></div></div></td></tr>
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><a href="../year_month_day.html" title="cpp/chrono/year month day"><span class="t-lines"><span>year_month_day</span></span></a></div><div><span class="t-lines"><span><span class="t-mark-rev t-since-cxx20">(C++20)</span></span></span></div></div></td></tr>
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><a href="../year_month_day_last.html" title="cpp/chrono/year month day last"><span class="t-lines"><span>year_month_day_last</span></span></a></div><div><span class="t-lines"><span><span class="t-mark-rev t-since-cxx20">(C++20)</span></span></span></div></div></td></tr>
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><a href="../year_month_weekday.html" title="cpp/chrono/year month weekday"><span class="t-lines"><span>year_month_weekday</span></span></a></div><div><span class="t-lines"><span><span class="t-mark-rev t-since-cxx20">(C++20)</span></span></span></div></div></td></tr>
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><a href="../year_month_weekday_last.html" title="cpp/chrono/year month weekday last"><span class="t-lines"><span>year_month_weekday_last</span></span></a></div><div><span class="t-lines"><span><span class="t-mark-rev t-since-cxx20">(C++20)</span></span></span></div></div></td></tr>
</table></div></td><td><div><table class="t-nv-begin" cellpadding="0" style="">
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><a href="../weekday_indexed.html" title="cpp/chrono/weekday indexed"><span class="t-lines"><span>weekday_indexed</span></span></a></div><div><span class="t-lines"><span><span class="t-mark-rev t-since-cxx20">(C++20)</span></span></span></div></div></td></tr>
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><a href="../weekday_last.html" title="cpp/chrono/weekday last"><span class="t-lines"><span>weekday_last</span></span></a></div><div><span class="t-lines"><span><span class="t-mark-rev t-since-cxx20">(C++20)</span></span></span></div></div></td></tr>
<tr class="t-nv"><td colspan="5"> <br>
</td></tr>
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><a href="../month_day.html" title="cpp/chrono/month day"><span class="t-lines"><span>month_day</span></span></a></div><div><span class="t-lines"><span><span class="t-mark-rev t-since-cxx20">(C++20)</span></span></span></div></div></td></tr>
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><a href="../month_day_last.html" title="cpp/chrono/month day last"><span class="t-lines"><span>month_day_last</span></span></a></div><div><span class="t-lines"><span><span class="t-mark-rev t-since-cxx20">(C++20)</span></span></span></div></div></td></tr>
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><a href="../month_weekday.html" title="cpp/chrono/month weekday"><span class="t-lines"><span>month_weekday</span></span></a></div><div><span class="t-lines"><span><span class="t-mark-rev t-since-cxx20">(C++20)</span></span></span></div></div></td></tr>
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><a href="../month_weekday_last.html" title="cpp/chrono/month weekday last"><span class="t-lines"><span>month_weekday_last</span></span></a></div><div><span class="t-lines"><span><span class="t-mark-rev t-since-cxx20">(C++20)</span></span></span></div></div></td></tr>
<tr class="t-nv"><td colspan="5"> <br>
</td></tr>
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><a href="../year_month.html" title="cpp/chrono/year month"><span class="t-lines"><span>year_month</span></span></a></div><div><span class="t-lines"><span><span class="t-mark-rev t-since-cxx20">(C++20)</span></span></span></div></div></td></tr>
</table></div></td></tr>
<tr class="t-nv-h2"><td colspan="5"> 时区</td></tr>
<tr class="t-nv-col-table"><td><div><table class="t-nv-begin" cellpadding="0" style="">
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><a href="../tzdb.html" title="cpp/chrono/tzdb"><span class="t-lines"><span>tzdb</span></span></a></div><div><span class="t-lines"><span><span class="t-mark-rev t-since-cxx20">(C++20)</span></span></span></div></div></td></tr>
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><a href="../tzdb_list.html" title="cpp/chrono/tzdb list"><span class="t-lines"><span>tzdb_list</span></span></a></div><div><span class="t-lines"><span><span class="t-mark-rev t-since-cxx20">(C++20)</span></span></span></div></div></td></tr>
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><a href="../tzdb_functions.html" title="cpp/chrono/tzdb functions"><span class="t-lines"><span>get_tzdb</span><span>get_tzdb_list</span><span>reload_tzdb</span><span>remote_version</span></span></a></div><div><span class="t-lines"><span><span class="t-mark-rev t-since-cxx20">(C++20)</span></span><span><span class="t-mark-rev t-since-cxx20">(C++20)</span></span><span><span class="t-mark-rev t-since-cxx20">(C++20)</span></span><span><span class="t-mark-rev t-since-cxx20">(C++20)</span></span></span></div></div></td></tr>
</table></div></td><td><div><table class="t-nv-begin" cellpadding="0" style="">
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><a href="../time_zone.html" title="cpp/chrono/time zone"><span class="t-lines"><span>time_zone</span></span></a></div><div><span class="t-lines"><span><span class="t-mark-rev t-since-cxx20">(C++20)</span></span></span></div></div></td></tr>
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><a href="../locate_zone.html" title="cpp/chrono/locate zone"><span class="t-lines"><span>locate_zone</span></span></a></div><div><span class="t-lines"><span><span class="t-mark-rev t-since-cxx20">(C++20)</span></span></span></div></div></td></tr>
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><a href="../current_zone.html" title="cpp/chrono/current zone"><span class="t-lines"><span>current_zone</span></span></a></div><div><span class="t-lines"><span><span class="t-mark-rev t-since-cxx20">(C++20)</span></span></span></div></div></td></tr>
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><a href="../zoned_time.html" title="cpp/chrono/zoned time"><span class="t-lines"><span>zoned_time</span></span></a></div><div><span class="t-lines"><span><span class="t-mark-rev t-since-cxx20">(C++20)</span></span></span></div></div></td></tr>
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><a href="../link.html" title="cpp/chrono/link"><span class="t-lines"><span>link</span></span></a></div><div><span class="t-lines"><span><span class="t-mark-rev t-since-cxx20">(C++20)</span></span></span></div></div></td></tr>
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><a href="../leap.html" title="cpp/chrono/leap"><span class="t-lines"><span>leap</span></span></a></div><div><span class="t-lines"><span><span class="t-mark-rev t-since-cxx20">(C++20)</span></span></span></div></div></td></tr>
</table></div></td></tr>
<tr class="t-nv-h2"><td colspan="5"> <a href="../c.html" title="cpp/chrono/c"> C 风格日期和时间</a></td></tr>
</table></div><div></div></div></div></div><div class="t-navbar-sep"> </div><div class="t-navbar-head"><a href="../gps_clock.html" title="cpp/chrono/gps clock"><tt>std::chrono::gps_clock</tt></a><div class="t-navbar-menu"><div><div><table class="t-nv-begin" cellpadding="0" style="">
<tr class="t-nv-h1"><td colspan="5">成员函数</td></tr>
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><a href="now.html" title="cpp/chrono/gps clock/now"><span class="t-lines"><span>gps_clock::now</span></span></a></div></div></td></tr>
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><a href="to_utc.html" title="cpp/chrono/gps clock/to utc"><span class="t-lines"><span>gps_clock::to_utc</span></span></a></div></div></td></tr>
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><a href="from_utc.html" title="cpp/chrono/gps clock/from utc"><span class="t-lines"><span>gps_clock::from_utc</span></span></a></div></div></td></tr>
<tr class="t-nv-h1"><td colspan="5">时间点 I/O</td></tr>
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><a href="operator_ltlt.html" title="cpp/chrono/gps clock/operator ltlt"><span class="t-lines"><span>operator&lt;&lt;</span></span></a></div></div></td></tr>
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><a href="formatter.html" title="cpp/chrono/gps clock/formatter"><span class="t-lines"><span>formatter<span class="t-dsc-small">&lt;std::chrono::gps_time&gt;</span></span></span></a></div></div></td></tr>
<tr class="t-nv"><td colspan="5"><div class="t-nv-ln-table"><div><strong class="selflink"><span class="t-lines"><span>from_stream</span></span></strong></div></div></td></tr>
</table></div><div></div></div></div></div><div class="t-navbar-sep"> </div></div>
<table class="t-dcl-begin"><tbody>
<tr class="t-dcl t-since-cxx20">
<td> <div><span class="mw-geshi cpp source-cpp"><span class="kw1">template</span> <span class="sy1">&lt;</span><span class="kw1">class</span> CharT, <span class="kw1">class</span> Traits, <span class="kw1">class</span> Duration, <span class="kw1">class</span> Alloc <span class="sy1">=</span> <a href="../../memory/allocator.html"><span class="kw700">std::<span class="me2">allocator</span></span></a><span class="sy1">&lt;</span>CharT<span class="sy1">&gt;&gt;</span><br>
<p><a href="../../io/basic_istream.html"><span class="kw1713">std::<span class="me2">basic_istream</span></span></a><span class="sy1">&lt;</span>CharT, Traits<span class="sy1">&gt;</span><span class="sy3">&amp;</span><br>
from_stream<span class="br0">(</span><a href="../../io/basic_istream.html"><span class="kw1713">std::<span class="me2">basic_istream</span></span></a><span class="sy1">&lt;</span>CharT, Traits<span class="sy1">&gt;</span><span class="sy3">&amp;</span> is, <span class="kw4">const</span> CharT<span class="sy2">*</span> fmt,<br>
            std<span class="sy4">::</span><span class="me2">chrono</span><span class="sy4">::</span><span class="me2">gps_time</span><span class="sy1">&lt;</span>Duration<span class="sy1">&gt;</span><span class="sy3">&amp;</span> tp, <br>
            <a href="../../string/basic_string.html"><span class="kw1228">std::<span class="me2">basic_string</span></span></a><span class="sy1">&lt;</span>CharT, Traits, Alloc<span class="sy1">&gt;</span><span class="sy2">*</span> abbrev <span class="sy1">=</span> nullptr,<br>
</p>
            <a href="../duration.html"><span class="kw998">std::<span class="me2">chrono</span><span class="sy4">::</span><span class="me2">minutes</span></span></a><span class="sy2">*</span> offset <span class="sy1">=</span> nullptr<span class="br0">)</span><span class="sy4">;</span></span></div></td>
<td class="t-dcl-nopad">  </td>
<td> <span class="t-mark-rev t-since-cxx20">(C++20 起)</span> </td>
</tr>
<tr class="t-dcl-sep"><td></td><td></td><td></td></tr>
</tbody></table>
<p>试图按照格式字符串 <code>fmt</code> 分析输入流 <code>is</code> 到时间点 <code>tp</code> 中。
</p><p>表现为<a href="../../named_req/UnformattedInputFunction.html" title="cpp/named req/UnformattedInputFunction"><i>无格式输入函数</i> <span style="font-family: Georgia, 'DejaVu Serif', serif; font-style:italic">(UnformattedInputFunction)</span> </a>，除了它在 <span class="t-c"><span class="mw-geshi cpp source-cpp">is.<span class="me1">gcount</span><span class="br0">(</span><span class="br0">)</span></span></span> 上拥有未指定的效果。在构造并检查 <code>sentry</code> 对象后，试图按照格式字符串 <code>fmt</code> 分析输入流 <code>is</code> 到 <code>tp</code> 中。若分析无法解码出合法的时间点，则调用 <span class="t-c"><span class="mw-geshi cpp source-cpp">is.<span class="me1">setstate</span><span class="br0">(</span><a href="../../io/ios_base/iostate.html"><span class="kw1700">std::<span class="me2">ios_base</span><span class="sy4">::</span><span class="me2">failbit</span></span></a><span class="br0">)</span></span></span> 并且不修改 <code>tp</code> 。
</p><p>若使用并成功分析了格式指定符 <code>%Z</code> ，则若 <code>abbrev</code> 非空则赋分析的值给 <span class="t-c"><span class="mw-geshi cpp source-cpp"><span class="sy2">*</span>abbrev</span></span> 。若使用并成功分析了格式指定符 <code>%z</code> 或修改的变体，则若 <code>offset</code> 非空则赋分析的值给 <span class="t-c"><span class="mw-geshi cpp source-cpp"><span class="sy2">*</span>offset</span></span> ，并将在把差赋值给 <code>tp</code> 前从分析的时间戳减去分析的偏移。
</p>
<h3><span class="mw-headline" id=".E6.A0.BC.E5.BC.8F.E5.AD.97.E7.AC.A6.E4.B8.B2"> 格式字符串 </span></h3>
<p>格式字符串由零或更多个转换说明符和通常字符组成。每个通常字符，除了空白字符和空终止字符，都匹配一个来自输入流的等同字符，或若流上的下个字符不比较相等则导致函数失败。
</p><p>每个空白字符匹配输入流中的零或更多个空白字符。
</p><p>每个不修饰的转换说明符以 <code>%</code> 字符后随一个确定说明符行为的字符开始。某些转换说明符拥有在 <code>%</code> 字符后插入修饰字符 <code>E</code> 或 <code>O</code> 的修饰形式。某些转换说明符拥有在 <code>%</code> 字符后插入作为十进制整数（下面显示为 <i><code>N</code></i> ）的宽度参数的修饰形式。每个转换说明符导致匹配的字符被按照下表转译成时间和日期类型的部分。
</p><p>格式字符串中，以 <code>%</code> 开始但不匹配下列转换说明符之一的字符序列被转译成通常字符。
</p><p>若 <code>from_stream</code> 无法分析格式字符串所指定的每项内容，或若分析出的信息不足以指定完整结果，或若分析透露矛盾的信息，则调用 <span class="t-c"><span class="mw-geshi cpp source-cpp">is.<span class="me1">setstate</span><span class="br0">(</span><a href="../../io/ios_base/iostate.html"><span class="kw1700">std::<span class="me2">ios_base</span><span class="sy4">::</span><span class="me2">failbit</span></span></a><span class="br0">)</span></span></span> 。
</p><p>下列转换说明符可用：
</p>
<table class="wikitable" style="font-size:85%; max-width:90em;">

<tr>
<th> 转换<br>说明符
</th>
<th> 解释
</th></tr>
<tr>
<th> <code>%%</code>
</th>
<td> 匹配字面的 <code>%</code> 字符。
</td></tr>
<tr>
<th> <code>%n</code>
</th>
<td> 匹配一个空白字符。
</td></tr>
<tr>
<th> <code>%t</code>
</th>
<td> 匹配零或一个空白字符。
</td></tr>
<tr>
<th colspan="3"> 年
</th></tr>
<tr>
<th> <code>%C</code> <br> <code>%<i>N</i>C</code> <br> <code>%EC</code> <br> <code>%OC</code>
</th>
<td> 将世纪分析成十进制数。宽度 <i>N</i> 指定要读取的最大字符数。默认宽度为 2 。容许但不要求前导零。
<p>修饰的命令 <code>%EC</code> 和 <code>%OC</code> 转译本地环境的替用世纪表示。
</p>
</td></tr>
<tr>
<th> <code>%y</code> <br> <code>%<i>N</i>y</code> <br> <code>%Ey</code> <br> <code>%Oy</code>
</th>
<td> 分析年的低二位十进制位。若不另外指定世纪（例如用 %C ），则预设范围 [69, 99] 中的值指代 1969 至 1999 年，<br>而预设范围 [00, 68] 中的值指代 2000 至 2068 年。宽度 <i>N</i> 指定要读取的最大字符数。默认宽度为 2 。容许但不要求前导零。
<p>修饰的命令 <code>%Ey</code> 和 <code>%Oy</code> 转译本地环境的替用表示。
</p>
</td></tr>
<tr>
<th> <code>%Y</code> <br> <code>%<i>N</i>Y</code> <br> <code>%EY</code>
</th>
<td> 将年分析成十进制数。宽度 <i>N</i> 指定要读取的最大字符数。默认宽度为 4 。容许但不要求前导零。
<p>修饰的命令 <code>%EY</code> 转译本地环境的替用表示。
</p>
</td></tr>
<tr>
<th colspan="3"> 月
</th></tr>
<tr>
<th> <code>%b</code><br><code>%B</code><br><code>%h</code>
</th>
<td> 分析本地环境的完整或缩写的无关大小写的月名。
</td></tr>
<tr>
<th> <code>%m</code><br> <code>%<i>N</i>m</code><br><code>%Om</code>
</th>
<td> 将月份分析成十进制数（一月为 <code>1</code> ）。宽度 <i>N</i> 指定要读取的最大字符数。默认宽度为 2 。容许但不要求前导零。
<p>修饰的命令 <code>%Om</code> 转译本地环境的替用表示。
</p>
</td></tr>
<tr>
<th colspan="3"> 日
</th></tr>
<tr>
<th> <code>%d</code><br><code>%<i>N</i>d</code><br><code>%Od</code><br><code>%e</code><br> <code>%<i>N</i>e</code><br><code>%Oe</code>
</th>
<td> 将月之日分析成十进制数。宽度 <i>N</i> 指定要读取的最大字符数。默认宽度为 2 。容许但不要求前导零。
<p>修改的命令 <code>%Od</code> 和 <code>%Oe</code> 转译本地环境的替用表示。
</p>
</td></tr>
<tr>
<th colspan="3"> 星期之日
</th></tr>
<tr>
<th> <code>%a</code><br><code>%A</code>
</th>
<td> 分析本地环境的完整或缩写的无关大小写的星期之日名。
</td></tr>
<tr>
<th> <code>%u</code><br><code>%<i>N</i>u</code><br><code>%Ou</code>
</th>
<td> 分析 ISO 星期之日为十进制数 (1-7) ，其中星期一为 <code>1</code> 。宽度 <i>N</i> 指定要读取的最大字符数。默认宽度为 1 。容许但不要求前导零。
<p>修饰的命令 <code>%Ou</code> 转译本地环境的替用表示。
</p>
</td></tr>
<tr>
<th> <code>%w</code><br><code>%<i>N</i>w</code><br><code>%Ow</code>
</th>
<td> 分析星期之日为十进制数 (0-6) ，其中星期日为 <code>0</code> 。宽度 <i>N</i> 指定要读取的最大字符数。默认宽度为 1 。容许但不要求前导零。
<p>修饰的命令 <code>%Ow</code> 转译本地环境的替用表示。
</p>
</td></tr>
<tr>
<th colspan="3"> 基于 ISO 8601 星期的年
</th></tr>
<tr>
<td colspan="3">
<p>ISO 8601 中，星期始于星期一，而每年的首周必须满足下列要求：
</p>
<ul><li> 包含 1 月 4 日
</li><li> 包含该年的首个星期四
</li></ul>
</td></tr>
<tr>
<th> <code>%g</code><br><code>%<i>N</i>g</code>
</th>
<td> 分析基于 ISO 8601 的年的低二位十进制数。宽度 <i>N</i> 指定要读取的最大字符数。默认宽度为 2 。容许但不要求前导零。
</td></tr>
<tr>
<th> <code>%G</code><br><code>%<i>N</i>G</code>
</th>
<td> 将基于 ISO 8601 的年分析成十进制数。宽度 <i>N</i> 指定要读取的最大字符数。默认宽度为 4 。容许但不要求前导零。
</td></tr>
<tr>
<th> <code>%V</code><br><code>%<i>N</i>V</code>
</th>
<td> 将基于 ISO 8601 的年之星期分析成十进制数。宽度 <i>N</i> 指定要读取的最大字符数。默认宽度为 2 。容许但不要求前导零。
</td></tr>
<tr>
<th colspan="3"> 年之星期/日
</th></tr>
<tr>
<th> <code>%j</code><br><code>%<i>N</i>j</code>
</th>
<td> 分析年之日为十进制数（ 1 月 1 日为 <code>1</code> ）。宽度 <i>N</i> 指定要读取的最大字符数。默认宽度为 3 。容许但不要求前导零。
</td></tr>
<tr>
<th> <code>%U</code><br><code>%<i>N</i>U</code>
</th>
<td> 分析年之星期为十进制数。该年的首个星期日是星期 01 的首日。同年中先于该天的日期属于星期 00 。<br>宽度 <i>N</i> 指定要读取的最大字符数。默认宽度为 2 。容许但不要求前导零。
</td></tr>
<tr>
<th> <code>%W</code><br><code>%<i>N</i>W</code>
</th>
<td> 分析年之星期为十进制数。该年的首个星期一是星期 01 的首日。同年中先于该天的日期属于星期 00 。<br>宽度 <i>N</i> 指定要读取的最大字符数。默认宽度为 2 。容许但不要求前导零。
</td></tr>
<tr>
<th colspan="3"> 日期
</th></tr>
<tr>
<th> <code>%D</code>
</th>
<td> 等价于 <code><b>"%m/%d/%y"</b></code> 。
</td></tr>
<tr>
<th> <code>%F</code><br><code>%<i>N</i>F</code>
</th>
<td> 等价于 <code><b>"%Y-%m-%d"</b></code> 。若指定宽度，则它只应用于 <code>%Y</code> 。
</td></tr>
<tr>
<th> <code>%x</code><br><code>%Ex</code>
</th>
<td> 分析本地环境的日期表示。
<p>修饰的命令 <code>%Ex</code> 转译本地环境的替用日期表示。
</p>
</td></tr>
<tr>
<th colspan="3"> 当天时刻
</th></tr>
<tr>
<th> <code>%H</code><br><code>%<i>N</i>H</code><br><code>%OH</code>
</th>
<td> 将时（ 24 小时时钟）分析成十进制数。宽度 <i>N</i> 指定要读取的最大字符数。默认宽度为 2 。容许但不要求前导零。
<p>修饰的命令 <code>%OH</code> 转译本地环境的替用表示。
</p>
</td></tr>
<tr>
<th> <code>%I</code><br><code>%<i>N</i>I</code>
</th>
<td> 将时（ 12 小时时钟）分析成十进制数。宽度 <i>N</i> 指定要读取的最大字符数。默认宽度为 2 。容许但不要求前导零。
</td></tr>
<tr>
<th> <code>%M</code><br><code>%<i>N</i>M</code><br><code>%OM</code>
</th>
<td> 将分分析成十进制数。宽度 <i>N</i> 指定要读取的最大字符数。默认宽度为 2 。容许但不要求前导零。
<p>修饰的命令 <code>%OM</code> 转译本地环境的替用表示。
</p>
</td></tr>
<tr>
<th> <code>%S</code><br><code>%<i>N</i>S</code><br><code>%OS</code>
</th>
<td> 将秒分析成十进制数。宽度 <i>N</i> 指定要读取的最大字符数。默认宽度为 2 ，<br>若 <code>Duration</code> 可转换为 <span class="t-lc"><a href="../duration.html" title="cpp/chrono/duration">std::chrono::seconds</a></span> ，否则以 <code>Duration</code> 的十进制精度确定它，<br>而以定点格式转译域为 long double ，由本地环境转译小数点字符（若遇到）。容许但不要求前导零。
<p>修饰的命令 <code>%OS</code> 转译本地环境的替用表示。
</p>
</td></tr>
<tr>
<th> <code>%p</code>
</th>
<td> 分析与 12 小时时钟关联的 AM/PM 记法的本地环境等价版本。
</td></tr>
<tr>
<th> <code>%R</code>
</th>
<td> 等价于 <code><b>"%H:%M"</b></code> 。
</td></tr>
<tr>
<th> <code>%T</code>
</th>
<td> 等价于 <code><b>"%H:%M:%S"</b></code> 。
</td></tr>
<tr>
<th> <code>%r</code>
</th>
<td> 分析本地环境的 12 小时时钟时刻。
</td></tr>
<tr>
<th> <code>%X</code><br><code>%EX</code>
</th>
<td> 分析本地环境的时刻表示。
<p>修饰的命令 <code>%EX</code> 转译本地环境的替用时间表示。
</p>
</td></tr>
<tr>
<th colspan="3"> 杂项
</th></tr>
<tr>
<th> <code>%c</code><br><code>%Ec</code>
</th>
<td> 分析本地环境的日期和时间表示。
<p>修饰的命令 <code>%Ec</code> 转译本地环境的替用日期和时间表示。
</p>
</td></tr>
<tr>
<th> <code>%z</code><br><code>%Ez</code><br><code>%Oz</code>
</th>
<td> 以格式 <code>[+|-]hh[mm]</code> 分析距 UTC 的偏移。例如 <code>-0430</code> 指代落后 UTC 4 小时 30 分，而 <code>04</code> 指代领先 UTC 4 小时。
<p>修饰的命令 <code>%Ez</code> 和 <code>%Oz</code> 分析格式 <code>[+|-]h[h][:mm]</code> （即要求时和分之间有 <code>:</code> ，并令时的前导零可选）。
</p>
</td></tr>
<tr>
<th> <code>%Z</code>
</th>
<td> 分析时区缩写或名称，取仅含字符 <code>A</code> 到 <code>Z</code> 、 <code>a</code> 到 <code>z</code> 、 <code>0</code> 到 <code>9</code> 、 <code>-</code> 、 <code>+</code> 、 <code>_</code> 和 <code>/</code> 的最长字符序列。
</td></tr></table>
<h3><span class="mw-headline" id=".E8.BF.94.E5.9B.9E.E5.80.BC"> 返回值 </span></h3>
<p><code>is</code> 。
</p><p><br>
</p>
<h3><span class="mw-headline" id=".E5.8F.82.E9.98.85"> 参阅 </span></h3>
<table class="t-dsc-begin">

<tr class="t-dsc">
<td>  <div class="t-dsc-member-div"><div><a href="../parse.html" title="cpp/chrono/parse"> <span class="t-lines"><span>parse</span></span></a></div><div><span class="t-lines"><span><span class="t-mark-rev t-since-cxx20">(C++20)</span></span></span></div></div>
</td>
<td>  从流分析 <code>chrono</code> 对象 <br> <span class="t-mark">(函数模板)</span> </td></tr>
</table>

<!-- 
NewPP limit report
Preprocessor visited node count: 5194/1000000
Preprocessor generated node count: 10964/1000000
Post‐expand include size: 257988/2097152 bytes
Template argument size: 26843/2097152 bytes
Highest expansion depth: 23/40
Expensive parser function count: 0/100
-->

<!-- Saved in parser cache with key mwiki1-mwiki_zh_:pcache:idhash:11258-0!*!0!!*!*!zh!* and timestamp 20200217160300 -->
</div>                    <!-- /bodycontent -->
                                        <!-- printfooter -->
                    <div class="printfooter">
                    来自“<a href="https://zh.cppreference.com/mwiki/index.php?title=cpp/chrono/gps_clock/from_stream&amp;oldid=56938">https://zh.cppreference.com/mwiki/index.php?title=cpp/chrono/gps_clock/from_stream&amp;oldid=56938</a>”                    </div>
                    <!-- /printfooter -->
                                                            <!-- catlinks -->
                    <!-- /catlinks -->
                                                            <div class="visualClear"></div>
                    <!-- debughtml -->
                                        <!-- /debughtml -->
                </div>
                <!-- /bodyContent -->
            </div>
        </div>
        <!-- /content -->
        <!-- footer -->
        <div id="cpp-footer-base" class="noprint">
            <div id="footer">
                        <div id="cpp-navigation">
            <h5>导航</h5>
            <ul><li><a href="https://zh.cppreference.com/w/cpp/chrono/gps_clock/from_stream">Online version</a></li><li>Offline version retrieved 2020-03-14 18:00.</li></ul></div>
                        <ul id="footer-info">
                                    <li id="footer-info-lastmod"> 本页面最后修改于2018年7月7日 (星期六) 19:50。</li>
                                    <li id="footer-info-viewcount">此页面已被浏览过327次。</li>
                            </ul>
                    </div>
        </div>
        <!-- /footer -->
        <script>if(window.mw){
mw.loader.state({"site":"loading","user":"missing","user.groups":"ready"});
}</script>
<script src="../../../../common/skin_scripts.js"></script>
<script>if(window.mw){
mw.loader.load(["mediawiki.action.view.postEdit","mediawiki.user","mediawiki.page.ready","mediawiki.searchSuggest","mediawiki.hidpi","ext.gadget.MathJax","ext.gadget.ColiruCompiler"], null, true);
}</script>
<script src="../../../../common/site_scripts.js"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-2828341-1']);
_gaq.push(['_setDomainName', 'cppreference.com']);
_gaq.push(['_trackPageview']);
</script><!-- Served in 0.822 secs. -->
	</body>
<!-- Cached 20200217160300 -->
</html>